fc0c2bb78c0593d2cfee9fa3edd50066d83ee40c,src/main/java/io/nats/stan/ConnectionImpl.java,ConnectionImpl,connect,#,116
Before Change
byte[] b = req.toByteArray();
Message reply = null;
try {
reply = nc.request(discoverSubject, b, opts.getConnectTimeout());
} catch (TimeoutException e) {
throw new TimeoutException(ERR_CONNECTION_REQ_TIMEOUT);
} catch(IOException e) {
After Change
byte[] bytes = req.toByteArray();
Message reply = null;
try {
reply = nc.request(discoverSubject, bytes, opts.getConnectTimeout().toMillis());
} catch (TimeoutException e) {
throw new TimeoutException(ERR_CONNECTION_REQ_TIMEOUT);
} catch (IOException e) {